# @configure_input@
# Package-specific substitution variables
package = @PACKAGE_NAME@
version = @PACKAGE_VERSION@
tarname = @PACKAGE_TARNAME@
distdir = $(tarname)-$(version)
# Prefix-specific substitution variables
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
# VPATH-related substitution variables
srcdir = @srcdir@
VPATH = @srcdir@

CC = @CC@
CCOPT =
CFLAGS =@CFLAGS@
LDFLAGS = @LDFLAGS@

TARGET = evilqq

SRCS = error.c evilqq.c list.c md5.c tcpip.c utils.c 

OBJS = error.o evilqq.o list.o md5.o tcpip.o utils.o 

DEPS = error.h evilqq.h list.h md5.h tcpip.h utils.h 

all: $(TARGET)
$(TARGET): $(DEPS) $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)

clean:
	-rm $(TARGET) $(OBJS)

dist: $(distdir).tar.gz
$(distdir).tar.gz: $(distdir)
	tar chof - $(distdir) | gzip -9 -c > $@
	rm -rf $(distdir)
$(distdir): FORCE
	@autoreconf
	rm -fr $(distdir)
	mkdir -p $(distdir)

	cp -ra $(SRCS) $(DEPS) configure.ac config.h.in Makefile.in configure \
		INSTALL docs COPYING CHANGELOG $(distdir)

distclean: clean
	rm -f Makefile config.h config.cache config.log config.status

config.h: config.h.in config.status
	./config.status
	
Makefile: Makefile.in config.status
	./config.status $@

config.status: configure
	./config.status --recheck
.PHONY: all clean check FORCE dist distclean




